<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    h1{
        width: 300px;
        height:  200px;
        background-color:orange;
        text-align: center;
        line-height:200px;
        margin: 100px;
        font-size: 22px;
        color: white;
    }
    </style>
</head>
<body>
   <script>
    document.write('<h1>努力学习JavaScript</h1>');
   </script>
</body>
</html>